package trlygjj.tanruiliyigenjinjin.mapper;

import trlygjj.tanruiliyigenjinjin.domain.Tuition;
import trlygjj.tanruiliyigenjinjin.query.QueryObject;

import java.util.List;

/**
 * 缴费表
 */
public interface TuitionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Tuition record);

    Tuition selectByPrimaryKey(Long id);

    List<Tuition> selectAll();

    int updateByPrimaryKey(Tuition record);

    int queryForCount(QueryObject qo);

    List<Tuition> queryForList(QueryObject qo);

    /**
     * 查询未缴费的学员的集合
     * @return
     */
    List<Tuition> selectUnpaidstudent();

    /**
     * 根据学员id查询出缴费的信息
     * @param professionStudentId
     * @return
     */
    Tuition selectTuitionStudentByprofessionStudentById(Long professionStudentId);

    /**
     * 改变学生的缴费信息
     * @param currentTuition
     */
    void updateCurrentStudentTuition(Tuition currentTuition);
}